<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/customer/shopMerchantOrder/list" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>订单号：<input type="text" name="orderNum" value="${requestScope.dwzPageBean.countResultMap.orderNum}" placeholder="输入订单号" /></td>
					<td>门店：<input type="text" name="sname" value="${requestScope.dwzPageBean.countResultMap.sname}" placeholder="输入门店" /></td>
					<td>区域：<input type="text" name="saname" value="${requestScope.dwzPageBean.countResultMap.saname}" placeholder="输入区域" /></td>
					<td>下单时间：<input type="text" name="addTime" value="${requestScope.dwzPageBean.countResultMap.addTime}" placeholder="输入下单时间" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div>
					</li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="/customer/shopMerchantOrder/delete">
				<li><a class="delete" href="${pageContext.request.contextPath}/customer/shopMerchantOrder/delete" rel="id" target="selectedTodo" title="确定要删除吗？" warn="请最小选择一条记录" mask="true"><span>批量删除</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id" class="checkboxCtrl"></th>
										<th orderField="orderNum" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'orderNum'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>订单号</th>
										
										<th orderField="sname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'sname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>门店名称</th>
										<th orderField="saname" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'saname'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>区域</th>
										<th orderField="addTime" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'addTime'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>下单时间</th>
										<th orderField="orderProcess" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'orderProcess'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>订单状态</th>
										<th orderField="updateTime" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'updateTime'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>更新时间</th>
										<th>操作</th>
			</tr>
		</thead>
		<tbody>
			
				<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
					<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
						<tr >
					
							<td><input name="id" value="${record.merchantOrderId}" type="checkbox"></td>
						<td>${record.orderNum}</td>
						<td>${record.sname}</td>
						<td>${record.saname}</td>
						<td><fmt:formatDate value="${record.addTime}" pattern="yyyy-MM-dd" /></td>
						<td>
						<!-- 订单流程  0新订单 1已受理  2待收货 6退款中 7已退货 8取消订单  9 完成 -->
						<c:if test="${record.orderProcess==0}" >新订单</c:if>
						<c:if test="${record.orderProcess==1}" >已受理</c:if>
						<c:if test="${record.orderProcess==2}" >待收货</c:if>
						<c:if test="${record.orderProcess==6}" >退款中</c:if>
						<c:if test="${record.orderProcess==7}" >已退货</c:if>
						<c:if test="${record.orderProcess==8}" >取消订单</c:if>
						<c:if test="${record.orderProcess==9}" >完成</c:if>
						</td>
						<td><fmt:formatDate value="${record.updateTime}" pattern="yyyy-MM-dd" /></td>
						<td>
							<c:if test="${record.del!=3}">
							<shiro:hasPermission name="/customer/shopMerchantOrder/toAudit">
							<a title="审核" mask="true" target="dialog" width="820" height="460" href="${pageContext.request.contextPath}/customer/shopMerchantOrder/toAudit?id=${record.merchantOrderId}" class="editBtn"><span>审核</span></a>
							</shiro:hasPermission>
							<a title="查看订单详情" mask="true" target="dialog" href="${pageContext.request.contextPath}/customer/merchantOrder?id=${record.merchantOrderId}" class="editBtn"><span>查看订单详情</span></a>
							<shiro:hasPermission name="/customer/shopMerchantOrder/delete">
							<a title="确定要删除吗？" mask="true" target="ajaxTodo" href="${pageContext.request.contextPath}/customer/shopMerchantOrder/delete?id=${record.merchantOrderId}" class="deleteBtn"><span>删除</span></a>
							</shiro:hasPermission>
							</c:if>
						</td>
					</tr>
				</c:forEach>
			</c:if>

		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/pageBar.jsp"%>
</div>
								 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
															 
														
					